package com.heima.wemedia.controller.v1;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmAuthDto;
import com.heima.wemedia.service.WmUserAuditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/api/v1/auth")
@RestController
public class WmUserAuditController {
    @Autowired
    private WmUserAuditService wmUserAuditService;
    @PostMapping("/list")
    public ResponseResult findAll(@RequestBody WmAuthDto dto){
        return wmUserAuditService.findAll(dto);
    }
    @PostMapping("/authFail")
    public ResponseResult authFail(@RequestBody WmAuthDto dto){
        return wmUserAuditService.findAll(dto);
    }
    @PostMapping("/authPass")
    public ResponseResult authPass(@RequestBody WmAuthDto dto){
        return wmUserAuditService.findAll(dto);
    }
}
